home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 242 / Issue 242 - April 2008 - DPCS0408DVD.ISO / Open Source / AutoHotKey / Source / AutoHotkey104705_source.exe / source / lib_pcre / pcre / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-11-21  |  11.5 KB  |  295 lines

  1. /* config.h.  Generated from config.h.in by configure.  */
  2. /* config.h.in.  Generated from configure.ac by autoheader.  */
  3.  
  4.  
  5. /* On Unix-like systems config.h.in is converted by "configure" into config.h.
  6. Some other environments also support the use of "configure". PCRE is written in
  7. Standard C, but there are a few non-standard things it can cope with, allowing
  8. it to run on SunOS4 and other "close to standard" systems.
  9.  
  10. If you are going to build PCRE "by hand" on a system without "configure" you
  11. should copy the distributed config.h.generic to config.h, and then set up the
  12. macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to
  13. all of your compile commands, so that config.h is included at the start of
  14. every source.
  15.  
  16. Alternatively, you can avoid editing by using -D on the compiler command line
  17. to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H.
  18.  
  19. PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
  20. HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
  21. them both to 0; an emulation function will be used. */
  22.  
  23. /* By default, the \R escape sequence matches any Unicode line ending
  24.    character or sequence of characters. If BSR_ANYCRLF is defined, this is
  25.    changed so that backslash-R matches only CR, LF, or CRLF. The build-time
  26.    default can be overridden by the user of PCRE at runtime. On systems that
  27.    support it, "configure" can be used to override the default. */
  28. /* #undef BSR_ANYCRLF */
  29. /* AutoHotkey: BSR_ANYCRLF above is left undefined for backward compatibility with earlier versions
  30. of AutoHotkey.  In any case, it might be the best default because it matches up with the default behavior
  31. of `a (PCRE_NEWLINE_ANY), namely that all of the following are considered newlines:
  32. `r, `n, `r`n, `v/VT/vertical tab/chr(0xB), `f/FF/formfeed/chr(0xC), and NEL/next-line/chr(0x85).*/
  33.  
  34. /* If you are compiling for a system that uses EBCDIC instead of ASCII
  35.    character codes, define this macro as 1. On systems that can use
  36.    "configure", this can be done via --enable-ebcdic. */
  37. /* #undef EBCDIC */
  38.  
  39. /* Define to 1 if you have the `bcopy' function. */
  40. #ifndef HAVE_BCOPY
  41. #define HAVE_BCOPY 0  /* AutoHotkey: Changed from 1 to 0. */
  42. #endif
  43.  
  44. /* Define to 1 if you have the <bits/type_traits.h> header file. */
  45. /* #undef HAVE_BITS_TYPE_TRAITS_H */
  46.  
  47. /* Define to 1 if you have the <dirent.h> header file. */
  48. #ifndef HAVE_DIRENT_H
  49. #define HAVE_DIRENT_H 0  /* AutoHotkey: Changed from 1 to 0. */
  50. #endif
  51.  
  52. /* Define to 1 if you have the <dlfcn.h> header file. */
  53. #ifndef HAVE_DLFCN_H
  54. #define HAVE_DLFCN_H 0  /* AutoHotkey: Changed from 1 to 0. */
  55. #endif
  56.  
  57. /* Define to 1 if you have the <inttypes.h> header file. */
  58. #ifndef HAVE_INTTYPES_H
  59. #define HAVE_INTTYPES_H 0  /* AutoHotkey: Changed from 1 to 0. */
  60. #endif
  61.  
  62. /* Define to 1 if you have the <limits.h> header file. */
  63. #ifndef HAVE_LIMITS_H
  64. #define HAVE_LIMITS_H 1
  65. #endif
  66.  
  67. /* Define to 1 if the system has the type `long long'. */
  68. #ifndef HAVE_LONG_LONG
  69. #define HAVE_LONG_LONG 1
  70. #endif
  71.  
  72. /* Define to 1 if you have the `memmove' function. */
  73. #ifndef HAVE_MEMMOVE
  74. #define HAVE_MEMMOVE 1
  75. #endif
  76.  
  77. /* Define to 1 if you have the <memory.h> header file. */
  78. #ifndef HAVE_MEMORY_H
  79. #define HAVE_MEMORY_H 1
  80. #endif
  81.  
  82. /* Define to 1 if you have the <stdint.h> header file. */
  83. #ifndef HAVE_STDINT_H
  84. #define HAVE_STDINT_H 0  /* AutoHotkey: Changed from 1 to 0. */
  85. #endif
  86.  
  87. /* Define to 1 if you have the <stdlib.h> header file. */
  88. #ifndef HAVE_STDLIB_H
  89. #define HAVE_STDLIB_H 1
  90. #endif
  91.  
  92. /* Define to 1 if you have the `strerror' function. */
  93. #ifndef HAVE_STRERROR
  94. #define HAVE_STRERROR 1
  95. #endif
  96.  
  97. /* Define to 1 if you have the <string> header file. */
  98. #ifndef HAVE_STRING
  99. #define HAVE_STRING 1
  100. #endif
  101.  
  102. /* Define to 1 if you have the <strings.h> header file. */
  103. #ifndef HAVE_STRINGS_H
  104. #define HAVE_STRINGS_H 0  /* AutoHotkey: Changed from 1 to 0. */
  105. #endif
  106.  
  107. /* Define to 1 if you have the <string.h> header file. */
  108. #ifndef HAVE_STRING_H
  109. #define HAVE_STRING_H 1
  110. #endif
  111.  
  112. /* Define to 1 if you have the `strtoll' function. */
  113. #ifndef HAVE_STRTOLL
  114. #define HAVE_STRTOLL 0  /* AutoHotkey: Changed from 1 to 0. */
  115. #endif
  116.  
  117. /* Define to 1 if you have the `strtoq' function. */
  118. #ifndef HAVE_STRTOQ
  119. #define HAVE_STRTOQ 1
  120. #endif
  121.  
  122. /* Define to 1 if you have the <sys/stat.h> header file. */
  123. #ifndef HAVE_SYS_STAT_H
  124. #define HAVE_SYS_STAT_H 1
  125. #endif
  126.  
  127. /* Define to 1 if you have the <sys/types.h> header file. */
  128. #ifndef HAVE_SYS_TYPES_H
  129. #define HAVE_SYS_TYPES_H 1
  130. #endif
  131.  
  132. /* Define to 1 if you have the <type_traits.h> header file. */
  133. /* #undef HAVE_TYPE_TRAITS_H */
  134.  
  135. /* Define to 1 if you have the <unistd.h> header file. */
  136. #ifndef HAVE_UNISTD_H
  137. #define HAVE_UNISTD_H 0  /* AutoHotkey: Changed from 1 to 0. */
  138. #endif
  139.  
  140. /* Define to 1 if the system has the type `unsigned long long'. */
  141. #ifndef HAVE_UNSIGNED_LONG_LONG
  142. #define HAVE_UNSIGNED_LONG_LONG 1
  143. #endif
  144.  
  145. /* Define to 1 if you have the <windows.h> header file. */
  146. /* #undef HAVE_WINDOWS_H */
  147. #define HAVE_WINDOWS_H 1  /* AutoHotkey: Added. */
  148.  
  149. /* Define to 1 if you have the `_strtoi64' function. */
  150. /* #undef HAVE__STRTOI64 */
  151. #define HAVE__STRTOI64 1  /* AutoHotkey: Added. */
  152.  
  153. /* The value of LINK_SIZE determines the number of bytes used to store links
  154.    as offsets within the compiled regex. The default is 2, which allows for
  155.    compiled patterns up to 64K long. This covers the vast majority of cases.
  156.    However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
  157.    for longer patterns in extreme cases. On systems that support it,
  158.    "configure" can be used to override this default. */
  159. #ifndef LINK_SIZE
  160. #define LINK_SIZE 2  /* AutoHotkey: PHP also seems to use 2, so it's likely the best compromise between memory utilization and being able to handle unusually large compiled patterns. */
  161. #endif
  162.  
  163. /* The value of MATCH_LIMIT determines the default number of times the
  164.    internal match() function can be called during a single execution of
  165.    pcre_exec(). There is a runtime interface for setting a different limit.
  166.    The limit exists in order to catch runaway regular expressions that take
  167.    for ever to determine that they do not match. The default is set very large
  168.    so that it does not accidentally catch legitimate cases. On systems that
  169.    support it, "configure" can be used to override this default default. */
  170. #ifndef MATCH_LIMIT
  171. #define MATCH_LIMIT 10000000
  172. #endif
  173.  
  174. /* The above limit applies to all calls of match(), whether or not they
  175.    increase the recursion depth. In some environments it is desirable to limit
  176.    the depth of recursive calls of match() more strictly, in order to restrict
  177.    the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
  178.    used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
  179.    match(). To have any useful effect, it must be less than the value of
  180.    MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
  181.    a runtime method for setting a different limit. On systems that support it,
  182.    "configure" can be used to override the default. */
  183. /* AutoHotkey: Original value was MATCH_LIMIT (i.e. 10000000).  It was lowered to 6000 so that
  184. the program's current stack limit of 4 MB won't be exceeded. The limit was computed from the
  185. following info in PCRE docs somewhere: "As a very rough rule of thumb, you should reckon on
  186. about 500 bytes per recursion. Thus, if you want to limit your stack usage to 8Mb, you should
  187. set the limit at 16000 recursions. A 64Mb stack, on the other hand, can support around
  188. 128000 recursions."
  189. */
  190. #ifndef MATCH_LIMIT_RECURSION
  191. #define MATCH_LIMIT_RECURSION 6000
  192. #endif
  193.  
  194. /* This limit is parameterized just in case anybody ever wants to change it.
  195.    Care must be taken if it is increased, because it guards against integer
  196.    overflow caused by enormously large patterns. */
  197. #ifndef MAX_NAME_COUNT
  198. #define MAX_NAME_COUNT 10000
  199. #endif
  200.  
  201. /* This limit is parameterized just in case anybody ever wants to change it.
  202.    Care must be taken if it is increased, because it guards against integer
  203.    overflow caused by enormously large patterns. */
  204. #ifndef MAX_NAME_SIZE
  205. #define MAX_NAME_SIZE 32
  206. #endif
  207.  
  208. /* The value of NEWLINE determines the newline character sequence. On systems
  209.    that support it, "configure" can be used to override the default, which is
  210.    10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or -2
  211.    (ANYCRLF). */
  212. /* AutoHotkey: Changed below from default of 10 to 3338 because there's a
  213.    slight chance that compiling this way improves performance. */
  214. #ifndef NEWLINE
  215. #define NEWLINE 3338
  216. #endif
  217.  
  218. /* PCRE uses recursive function calls to handle backtracking while matching.
  219.    This can sometimes be a problem on systems that have stacks of limited
  220.    size. Define NO_RECURSE to get a version that doesn't use recursion in the
  221.    match() function; instead it creates its own stack by steam using
  222.    pcre_recurse_malloc() to obtain memory from the heap. For more detail, see
  223.    the comments and other stuff just above the match() function. On systems
  224.    that support it, "configure" can be used to set this in the Makefile (use
  225.    --disable-stack-for-recursion). */
  226. /* #undef NO_RECURSE */
  227.  
  228. /* Name of package */
  229. #define PACKAGE "pcre"
  230.  
  231. /* Define to the address where bug reports for this package should be sent. */
  232. #define PACKAGE_BUGREPORT ""
  233.  
  234. /* Define to the full name of this package. */
  235. #define PACKAGE_NAME "PCRE"
  236.  
  237. /* Define to the full name and version of this package. */
  238. #define PACKAGE_STRING "PCRE 7.4"
  239.  
  240. /* Define to the one symbol short name of this package. */
  241. #define PACKAGE_TARNAME "pcre"
  242.  
  243. /* Define to the version of this package. */
  244. #define PACKAGE_VERSION "7.4"
  245.  
  246.  
  247. /* If you are compiling for a system other than a Unix-like system or
  248.    Win32, and it needs some magic to be inserted before the definition
  249.    of a function that is exported by the library, define this macro to
  250.    contain the relevant magic. If you do not define this macro, it
  251.    defaults to "extern" for a C compiler and "extern C" for a C++
  252.    compiler on non-Win32 systems. This macro apears at the start of
  253.    every exported function that is part of the external API. It does
  254.    not appear on functions that are "external" in the C sense, but
  255.    which are internal to the library. */
  256. /* #undef PCRE_EXP_DEFN */
  257.  
  258. /* Define if linking statically (TODO: make nice with Libtool) */
  259. /* #undef PCRE_STATIC */
  260. #define PCRE_STATIC 1  /* AutoHotkey: Added because it reduces code size of AutoHotkey.exe and others by 1-2 KB.  It's also more appropriate since the linking of this library is at compile-time (i.e. not a DLL). */
  261.  
  262. /* When calling PCRE via the POSIX interface, additional working storage is
  263.    required for holding the pointers to capturing substrings because PCRE
  264.    requires three integers per substring, whereas the POSIX interface provides
  265.    only two. If the number of expected substrings is small, the wrapper
  266.    function uses space on the stack, because this is faster than using
  267.    malloc() for each call. The threshold above which the stack is no longer
  268.    used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it,
  269.    "configure" can be used to override this default. */
  270. #ifndef POSIX_MALLOC_THRESHOLD
  271. #define POSIX_MALLOC_THRESHOLD 10
  272. #endif
  273.  
  274. /* Define to 1 if you have the ANSI C header files. */
  275. #ifndef STDC_HEADERS
  276. #define STDC_HEADERS 1
  277. #endif
  278.  
  279. /* Define to enable support for Unicode properties */
  280. /* #undef SUPPORT_UCP */
  281.  
  282. /* Define to enable support for the UTF-8 Unicode encoding. */
  283. /* #undef SUPPORT_UTF8 */
  284.  
  285. /* Version number of package */
  286. #ifndef VERSION
  287. #define VERSION "7.4"
  288. #endif
  289.  
  290. /* Define to empty if `const' does not conform to ANSI C. */
  291. /* #undef const */
  292.  
  293. /* Define to `unsigned int' if <sys/types.h> does not define. */
  294. /* #undef size_t */
  295.